# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=sickle
pkgver=357.fa5313d
pkgrel=2
pkgdesc='A shellcode development tool, created to speed up the various steps needed to create functioning shellcode.'
groups=('blackarch' 'blackarch-exploitation')
arch=('any')
url='https://github.com/wetw0rk/Sickle'
license=('MIT')
depends=('python' 'python-capstone')
makedepends=('git' 'python-setuptools')
source=("$pkgname::git+https://github.com/wetw0rk/Sickle.git")
sha512sums=('SKIP')

pkgver() {
  cd $pkgname

  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

build() {
  cd $pkgname/src

  python setup.py build
}

package() {
  cd $pkgname

  python src/setup.py install --root="$pkgdir" --prefix=/usr --skip-build

  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md
}

